package com.dreamchaser.familydevice.po;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author shajie
 * @since 2020-08-16
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Component extends Model<Component> {


    private static final long serialVersionUID = -714685380890042042L;
    @TableId("id")
    private Integer id;

    @TableField("name")
    private String name;

    @TableField("status_code")
    private Integer statusCode;

    @TableField("com_code")
    private Integer comCode;

    @TableField("device_id")
    private Integer deviceId;

    @TableField("create_date")
    private LocalDateTime createDate;

    @TableField("update_date")
    private LocalDateTime updateDate;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
